import java.util.Scanner;

/**
 * @author Administrator
 */
public class While2 {
    public static void main(String[] args) {
        System.out.println("请输入一个多位数：");
        Scanner scanner=new Scanner(System.in);
        int num=scanner.nextInt();
        int count=0;
        while(num>0){
            num=num/10;
            count++;
        }
        System.out.println(count);
    }
}
